package com.cxf.cxfuserdemo.feign;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * description: StoreFeignClientHystrix <br>
 * date: 2021/10/30 22:39 <br>
 * author: cxf <br>
 * version: 1.0 <br>
 */
@Component
public class StoreFeignClientHystrix implements StoreFeignClient{

    private static final Logger logger = LoggerFactory.getLogger(StoreFeignClientHystrix.class);

    @Override
    public String echoYourMessageFromUserDemo(String msg) {
        return "echoYourMessage msg" ;
    }

    @Override
    public String echoYourMessage(String user, String pwd) {
        logger.error("echoYourMessage user pwd error  ........");
        return "echoYourMessage user pwd";
    }

    @Override
    public String loginByMap(Map<String, Object> map) {
        return "loginByMap  map";
    }
}
